
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$title}</title>
    <style>
        input{
            font-size:16px;
            width: 300px;
            height: 30px;
        }
        select{width: 200px;height: 30px;}
        button{width: 120px; height:30px}
    </style>
</head>
<body>
    <h1 style="text-align: center;">{$title}</h1>
    <table border="1" align="center" width="400" cellspacing="0">
   <form action="{:url('rest/User/update',['id'=>$list['id']])}" method="post">
    <input type="hidden" name="_method" value="PUT"/> 
        <input type="hidden" name="id" value="{$list.id}">
        <tr>
            <td>NAME</td>
            <td><input type="text" name="name" value="{$list.name}"></td>
        </tr>
        <tr>
            <td>SEX</td>
            <td><select name="sex">
                <option value="0" {$list.sex==0?"selected":'';}>女</option>
                <option value="1"
                {$list.sex==1?"selected":'';}>男</option>
                <option value="2"
                {$list.sex==2?"selected":'';}>保密</option>
            </select></td>
        </tr>
        <tr>
            <td>AGE</td>
            <td><input type="text" name="age" value="{$list.age}"></td>
        </tr>
        <tr>
            <td>TEL</td>
            <td><input type="text" name="tel" value="{$list.tel}" maxlength="11"></td>
        </tr>
        <tr>
            <td>PRO</td>
            <td><input type="text" name="province" value="{$list.province}"></td>
        </tr>
        <tr>
            <td>STAUTS</td>
            <td><select name="status">
                <option value="0" 
                {$list.status==0?"selected":'';}>禁用</option>
                <option value="1"
                {$list.status==1?"selected":'';}>激活</option>
            </select></td>
        </tr>
        <tr>
            <td>PASS</td>
            <td><input type="password" name="pass"></td>
        </tr>
        <tr>
            <td>REPASS</td>
            <td><input type="password" name="repass"></td>
        </tr>
        <tr style="text-align: center;"><td colspan="2"><button>提交</button></td></tr>

    </form>
    </table>
</body>
</html>